package main

import "fmt"

func Fmain() {
	t := [...]int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
	fmt.Printf("%T\n", t)
	t_s := t[:5:7]
	fmt.Println(t, t_s, len(t_s), cap(t_s))
	t_s2 := t[:5]
	fmt.Println(t, t_s2, len(t_s2), cap(t_s2))
	t_s3 := t_s2[:5:7]
	fmt.Println(t, t_s3, len(t_s3), cap(t_s3))

	t[2] = 12
	fmt.Println(t, t_s, t_s2)

	t_s_s := t_s[2:]
	fmt.Println(t, t_s, t_s_s, len(t_s_s), cap(t_s_s))

	t1 := make([]int, 0, 5)
	fmt.Println(t1 == nil)
	// fmt.Println(t_s2 == t_s)


	var a = make([]string, 5, 10)
	for i := 0; i < 10; i++ {
		a = append(a, fmt.Sprintf("%v", i))
	}
	fmt.Println(a)
}
